package br.univas.vperiod.jowey.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="player_report")
public class PlayerReport implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4807307092908210710L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long idPlayerReport;
	
	private int workingHour;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idWeek")
	private Week week;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idPlayer_job")
	private PlayerJob playerJob;
	
	
	

	
	
	public long getIdPlayerReport() {
		return idPlayerReport;
	}

	public void setIdPlayerReport(long idPlayerReport) {
		this.idPlayerReport = idPlayerReport;
	}

	public int getWorkingHour() {
		return workingHour;
	}

	public void setWorkingHour(int workingHour) {
		this.workingHour = workingHour;
	}

	public Week getWeek() {
		return week;
	}

	public void setWeek(Week week) {
		this.week = week;
	}

	public PlayerJob getPlayerJob() {
		return playerJob;
	}

	public void setPlayerJob(PlayerJob playerJob) {
		this.playerJob = playerJob;
	}
}
